<script>
	import {mapActions} from 'vuex';
	export default {
		methods: {
			...mapActions({
				login: 'user/login'
			})
		},
		onLaunch: function() {
			console.log('App Launch')
			wx.login({
				success: (res)=>{
					console.log('res...', res);
					this.login(res.code);
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
